#include<AT89X52.h>
void delay()
{
unsigned int j;
for(j=60000;j>0;j--)
{
}
}
void function2()
{
int i=0;
unsigned char choose[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
for(i=0;i<8;i++)
{
P2=choose[i];
delay();
}
}